package com.yaser.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.yaser.util.AlfrescoUtil;

@Component
@Scope("session")
@Entity
public class User implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2397848842304034703L;

	@Id
	@GeneratedValue
	private Long id;
	
	private String userName;
	private String lastName;
	private String password;
	private Date registerDate;
	/**
	 * Kullanıcının avatarı alfresco da belirli bir dizin altında tutulur bknz {@link AlfrescoUtil} 
	 * ve bu dizin altındaki 
	 */
	private String picNodeId;
	@Transient
	private String alf_ticket;
	private String baseFolderNodeRef;
	
	private String email;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getAlf_ticket() {
		
		return alf_ticket;
	}
	public void setAlf_ticket(String alf_ticket) {
		this.alf_ticket = alf_ticket;
	}
	public void setBaseFolderNodeRef(String baseFolderNodeRef) {
		this.baseFolderNodeRef = baseFolderNodeRef;
	}
	public String getBaseFolderNodeRef() {
		return baseFolderNodeRef;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}
	/**
	 * @param registerDate the registerDate to set
	 */
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}
	/**
	 * @return the registerDate
	 */
	public Date getRegisterDate() {
		return registerDate;
	}
	public void setPicNodeId(String picNodeId) {
		this.picNodeId = picNodeId;
	}
	public String getPicNodeId() {
		return picNodeId;
	}
}
